home *** CD-ROM | disk | FTP | other *** search
- property sp, extOffset, pos, midBoardPos, hitName, state, boardPos, boardlimit
-
- on new me, asp, aPos, aNum
- me.sp = asp + 2
- extOffset = point(the width of sprite me.sp, 0)
- me.pos = aPos + extOffset
- set the loc of sprite the sp of me to me.pos
- me.midBoardPos = aNum
- me.hitName = #board
- me.state = #bend
- me.boardPos = midBoardPos
- me.boardlimit = midBoardPos
- return me
- end
-
- on GetBabyHitList me, asp
- tempList = []
- if sprite asp intersects me.sp then
- add(tempList, me)
- add(tempList, me.hitName)
- add(tempList, me.state)
- add(tempList, me.boardPos)
- add(tempList, me.boardlimit)
- end if
- return tempList
- end
-